﻿<%@ Control Language="C#"  %>
<script runat="server">
    
    protected void Page_Load(object sender, EventArgs e)
    {

        Comments comments = new Comments();
        Repeater_List.DataSource = comments.List_Comment_Reply(Item_Reply);
        Repeater_List.DataBind();
    }

    private int item_reply = 0;
    public int Item_Reply
    {
        get { return item_reply; }
        set { item_reply = value; }
    }
</script>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <tr id="TR<%#Eval("Item_Id") %>" style="background-color:#f4f4f4;">
        <td class="Narrow"></td>
        <td class="Narrow"></td>
        <td class="Narrow"></td>
        <td><div class="img"></div></td>
        <td><%#Eval("Item_Content")%></td>
        <td><code><%#Eval("Item_Time", "{0:yyyy/MM/dd<br>HH-mm-ss}")%></code></td>
        <td><code><%#Eval("Create_Time", "{0:yyyy/MM/dd<br>HH-mm-ss}")%></code></td>
        <td class="Narrow"></td><td class="Narrow"></td>
        <td><a href="Reply_Edit.aspx?id=<%#Eval("Item_Id")%>"><%=Lang.Show("Edit")%></a></td>
        <td><a href="javascript:Del(<%#Eval("Item_Id") %>,4)" class="del"><%=Lang.Show("Del") %></a></td>
    </tr>
     
</ItemTemplate>
</asp:Repeater>
